package com.neusoft.demo.pojo.dto;

import com.neusoft.demo.entity.User;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author BBQ
 */
@Data
public class UserDto extends User {

    @Override
    @NotBlank(message = "名称不能空！")
    public String getName() {
        return super.getName();
    }
}
